export default {
  namespace: 'lightbox',

  state: {
    isOpen: false,
    src: '',
  },

  reducers: {
    close (state, {payload}) {
      return {
        ...state,
        ...payload,
      }
    },
    show (state, {payload}) {
      return {
        ...state,
        ...payload,
      }
    },
  },
}
